/*     */ package eos.moe.dragoncore;
/*     */ import java.util.ArrayList;
/*     */ import java.util.Collections;
/*     */ import java.util.HashMap;
/*     */ import java.util.LinkedHashMap;
/*     */ import java.util.List;
/*     */ import java.util.Map;
/*     */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*     */ import org.yaml.snakeyamla.configuration.file.YamlConfiguration;
/*     */ 
/*     */ public class an {
/*  12 */   private static final Map<String, Class<? extends pi>> q = new HashMap<>();
/*  13 */   private static final Map<String, String> g = new HashMap<>();
/*     */ 
/*     */ 
/*     */   
/*     */   public static Map<String, pi> v(vh a, YamlConfiguration yamlConfiguration) {
/*  18 */     Map<?, ?> map = Collections.synchronizedMap(new LinkedHashMap<>());
/*  19 */     List<pi> list = v(a, yamlConfiguration);
/*  20 */     for (pi pi : list) {
/*  21 */       map.put(pi.xa.getName(), pi);
/*     */     }
/*  23 */     return (Map)map;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public static pi v(vh a, ConfigurationSection configurationSection) {
/*     */     Class<? extends pi> clazz;
/*  51 */     if (configurationSection.contains("type")) {
/*  52 */       clazz = q.get(configurationSection.getString("type"));
/*     */     } else {
/*  54 */       String[] arrayOfString = configurationSection.getName().split("_");
/*  55 */       clazz = q.get(arrayOfString[arrayOfString.length - 1]);
/*     */     } 
/*     */     
/*  58 */     if (clazz != null) {
/*  59 */       return v(a, configurationSection, clazz);
/*     */     }
/*  61 */     return null;
/*     */   }
/*     */ 
/*     */   
/*     */   public static boolean v(ConfigurationSection a) {
/*     */     Class clazz;
/*  67 */     if (a.contains("type")) {
/*  68 */       clazz = q.get(a.getString("type"));
/*     */     } else {
/*  70 */       String[] arrayOfString = a.getName().split("_");
/*  71 */       clazz = q.get(arrayOfString[arrayOfString.length - 1]);
/*     */     } 
/*  73 */     return (clazz != null);
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public static String v(String a) {
/*  89 */     return g.getOrDefault(a.toLowerCase(Locale.ROOT), a);
/*     */   }
/*     */ 
/*     */   
/*     */   static {
/*  94 */     q.put("t", eo.class);
/*  95 */     q.put("l", if.class);
/*  96 */     q.put("ev", hm.class);
/*  97 */     q.put("s", fk.class);
/*  98 */     q.put("tb", od.class);
/*  99 */     q.put("ta", fm.class);
/*     */     
/* 101 */     q.put("texture", eo.class);
/* 102 */     q.put("label", if.class);
/* 103 */     q.put("entity", hm.class);
/* 104 */     q.put("slot", fk.class);
/* 105 */     q.put("textbox", od.class);
/* 106 */     q.put("textarea", fm.class);
/*     */     
/* 108 */     q.put("图片", eo.class);
/* 109 */     q.put("文本", if.class);
/* 110 */     q.put("实体", hm.class);
/* 111 */     q.put("槽位", fk.class);
/* 112 */     q.put("文本框", od.class);
/* 113 */     q.put("多行文本框", fm.class);
/*     */     
/* 115 */     g.put("x", "x");
/* 116 */     g.put("y", "y");
/* 117 */     g.put("z", "z");
/* 118 */     g.put("width", "width");
/* 119 */     g.put("height", "height");
/* 120 */     g.put("limitx", "limitX");
/* 121 */     g.put("limity", "limitY");
/* 122 */     g.put("limitwidth", "limitWidth");
/* 123 */     g.put("limitheight", "limitHeight");
/* 124 */     g.put("maxdistabcex", "maxDistanceX");
/* 125 */     g.put("maxdistancey", "maxDistanceY");
/* 126 */     g.put("mindistancex", "minDistanceX");
/* 127 */     g.put("mindistancey", "minDistanceY");
/* 128 */     g.put("enable", "enable");
/* 129 */     g.put("visible", "visible");
/* 130 */     g.put("alpha", "alpha");
/* 131 */     g.put("scale", "scale");
/* 132 */     g.put("fscale", "fscale");
/* 133 */     g.put("frotatex", "frotatex");
/* 134 */     g.put("frotatey", "frotatey");
/* 135 */     g.put("frotatez", "frotatez");
/* 136 */     g.put("fx", "fx");
/* 137 */     g.put("fy", "fy");
/* 138 */     g.put("tip", "tip");
/* 139 */     g.put("position", "position");
/*     */     
/* 141 */     g.put("entity", "entity");
/* 142 */     g.put("head", "head");
/* 143 */     g.put("followmouse", "followMouse");
/* 144 */     g.put("hidename", "hideName");
/*     */     
/* 146 */     g.put("color", "color");
/* 147 */     g.put("text", "text");
/* 148 */     g.put("texture", "texture");
/* 149 */     g.put("texturehovered", "textureHovered");
/* 150 */     g.put("font", "font");
/* 151 */     g.put("u", "u");
/* 152 */     g.put("v", "v");
/* 153 */     g.put("texturewidth", "textureWidth");
/* 154 */     g.put("textureheight", "textureHeight");
/*     */ 
/*     */     
/* 157 */     g.put("center", "center");
/* 158 */     g.put("shadow", "shadow");
/* 159 */     g.put("length", "length");
/* 160 */     g.put("replacecolor", "replaceColor");
/* 161 */     g.put("linespace", "lineSpace");
/* 162 */     g.put("texts", "texts");
/*     */ 
/*     */     
/* 165 */     g.put("identifier", "identifier");
/* 166 */     g.put("drawbackground", "drawBackground");
/*     */     
/* 168 */     g.put("focused", "focused");
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\an.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */